﻿using System.Xml.Serialization;

namespace Toybox.NicoSharp.Live.Alert
{
	using Primitives;
	using Utilities;

	[XmlRoot("getalertstatus")]
	public class AlertStatus : AbstractLiveStatus
	{

		#region [Static]

		/// <summary>
		/// AlertStatus取得
		/// </summary>
		/// <returns></returns>
		public static AlertStatus Get()
		{
			string xml = NicoWebClient.Get(NicoUrls.LiveApi + "getalertinfo");
			return Deserializer.XmlDeserializer<AlertStatus>(xml);
		}

		#endregion [Static]


		#region Public Members

		/// <summary>
		/// ユーザーID
		/// </summary>
		public string user_id;

		/// <summary>
		/// ユーザーハッシュ
		/// </summary>
		public string user_hash;

		/// <summary>
		/// メッセージサーバ
		/// </summary>
		public MS ms;

		#endregion Public Members


		#region [SubClass]

		/// <summary>
		/// メッセージサーバー
		/// </summary>
		public class MS : AbstractMS
		{
		}

		#endregion [SubClass]

	}
}